package com.runewbie.pafcmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.runewbie.common.utils.PageUtils;
import com.runewbie.pafcmall.product.entity.SpuInfoEntity;
import com.runewbie.pafcmall.product.vo.spu.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author runewbie
 * @email 0102lijian@gmail.com
 * @date 2020-04-11 22:47:28
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存商品信息
     * @param vo
     */
    void saveSpuInfo(SpuSaveVo vo);

    /**
     * 保存spu基本信息
     * @param spuInfoEntity
     */
    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    /**
     * 根据条件进行spu检索
     * @param params
     * @return
     */
    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 商品上架
     * @param spuId
     */
    void up(Long spuId);
}

